/*
 * @Author: your name
 * @Date: 2020-04-08 11:07:06
 * @LastEditTime: 2020-05-07 05:39:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /vscode-as-markdown-editor/webpack_jspjiaocheng/all_part_demo/config_test.js
 */


 
const commonConfig = require("./webpack_config/webpack.common.js");
const developmentConfig = require("./webpack_config/webpack.development.js");
const productionConfig = require("./webpack_config/webpack.production.js");
const merge = require("webpack-merge");

module.exports = () => {
    if (process.env.type === "production") {
        return merge(commonConfig, productionConfig, { mode: "production" });
    }
    return merge(commonConfig, developmentConfig, { mode: "development" });
}


